package com.wl.api.common.utils;



public enum ErrorCodeEnum implements LoginCode, LoginMessage  {
	
	login_fail_param_error(login_fail_param_error_code, login_fail_param_error_message),
	login_fail_account_error(login_account_fail_error_code, login_account_fail_message),
	sc_unauthorized(SC_UNAUTHORIZED_code, SC_UNAUTHORIZED_message),
	sc_forbidden(sc_login_forbidden_code, sc_login_forbidden_message),
	param_error(param_error_code, param_error_message),
	bad_request(bad_request_code, bad_request_messsage),
	bad_request_published_data(bad_request_published_data_code, bad_request_published_data_message),
	service_not_supported(service_not_supported_code, service_not_supported_message);

	private String error_code;
	private String message;
	private ErrorCodeEnum(String error_code, String message) {
		this.error_code = error_code;
		this.message = message;
	}
	public String getError_code() {
		return error_code;
	}
	public void setError_code(String error_code) {
		this.error_code = error_code;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	
	
	

}

 interface LoginCode {
	String SC_UNAUTHORIZED_code = "401_401";
	String login_fail_param_error_code = "401_001";
	String login_account_fail_error_code = "401_002";
	String sc_login_forbidden_code = "403_403";
	String param_error_code = "200_001";
	String bad_request_code = "200_001"; 
	String bad_request_published_data_code = "200_002";
	String service_not_supported_code = "404_0001";
}
 interface LoginMessage {
	 String param_error_message ="请求参数错误";
	 String login_fail_param_error_message = "登录参数错误";
	 String login_account_fail_message = "账户或密码错误";
	 String SC_UNAUTHORIZED_message = "未授权, 或授权失败";
	 String sc_login_forbidden_message = "拒绝访问";
	 String bad_request_messsage ="请求失败,请核实!";
	 String bad_request_published_data_message = "请求失败, 发布的数据不可修改, 只能下架再修改";
	 String service_not_supported_message = "暂未提供该服务, 开发中";
}